using Autofac;
using Xunit;
using Zhongjiu.Common;

namespace Zhongjiu.Tests
{
    public class Redis_Should
    {
        DI_Test dI_Test = new DI_Test();
        IRedisCacheManager _redisCacheManager = null;
        public Redis_Should()
        {
            var container = dI_Test.DICollections();
            _redisCacheManager = container.Resolve<IRedisCacheManager>();
        }

        [Fact]
        public void Connect_Redis_Test()
        {

            var redisBlogCache = _redisCacheManager.Get<object>("Redis.Blog");

            Assert.Null(redisBlogCache);
        }

    }
}
